package dao;

/**
 *
 * @author Alexander
 */
public class JDBCDaoFactory implements DAOFactory {

    private static JDBCDaoFactory instance;

    private JDBCDaoFactory() {
    }

    @Override
    public UserDAO getUserDAO() {
        return UserJDBCDAO.getInstance();
    }

    public static synchronized JDBCDaoFactory getInstance() {
        if (instance == null) {
            instance = new JDBCDaoFactory();
        }
        return instance;
    }
}
